package faq.dao.impl;

import org.apache.ibatis.session.SqlSession;

import faq.dao.CalssesDao;
import faq.entity.Calsses;
import faq.entity.MyBatisUtil;

public class CalssesDaoImpl implements CalssesDao {
	SqlSession session=null;
	public Calsses getCalssesById(int id) {
		session =MyBatisUtil.openSession();
		CalssesDao calssesDao =session.getMapper(CalssesDao.class);
		return calssesDao.getCalssesById(id);
	}

}
